<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}">
</head>
<body>
<nav class="navbar navbar-expand-lg   navbar-dark bg-primary">
    <a class="navbar-brand" href="#">Navbar</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
            <li class="nav-item active">
                <a class="nav-link" href="#" th:href="@{/}">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#" th:href="@{/login}">登录</a>
            </li>

            <li class="nav-item">
                <a class="nav-link" href="#" th:href="@{/welcome}">welcome</a>
            </li>

        </ul>
    </div>
</nav>
<div class="container">


    <form  th:action="@{/login}" method="post">
        <div class="form-group">
            <label for="usernameInput">用户名</label>
            <input type="text" name="username" class="form-control" id="usernameInput"   placeholder="Tom">
            <small id="emailHelp" class="form-text text-muted">随便填一个都可以登录的.</small>
        </div>

        <button type="submit" class="btn btn-primary">Submit</button>
    </form>


</div>
<script th:src="@{/webjars/jquery/3.0.0/jquery.min.js}"></script>
<script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
</body>
</html>